<?php
namespace app\admin\server;
use think\Controller;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/17 0017
 * Time: 15:52
 */
class Token extends Controller
{
    //生成令牌
    public function createToken()
    {
//        隨機字符串
        $randChar = getRandChar(32);
        $timestamp = $_SERVER['REQUEST_TIME_FLOAT'];
//        $tokenSalt = config('secure.token_salt');
        return md5($randChar . $timestamp );
    }





}